Skip to content

Conversation

BerniWittmann
Copy link

…on prereleases

When working a lot with prereleases the changelog file can become quite bloated with the prereleases.
To provide easier overview one might only want to include normal releases in the changelog.
That is why i added the skipOnPrerelease config flag which is false by default to not cause unexpected behavior change.
But if you turn it on it will prevent updates on prereleases and only include release change notes in the changelog.

@BerniWittmann BerniWittmann force-pushed the feat/add-flag-only-release branch from dd97682 to c556422 Compare January 23, 2023 11:52
…eases

When working a lot with prereleases the changelog file can become quite bloated with the prereleases
To provide easier overview one might only want to include normal releases in the changelog.
That is why i added the skipOnPrerelease config flag which is false by default
But if you turn it on it will prevent updates on prereleases
@BerniWittmann BerniWittmann force-pushed the feat/add-flag-only-release branch from c556422 to 8aa9784 Compare January 26, 2023 06:54
@frnode
Copy link

frnode commented Mar 15, 2023

I need this too, because with a branch operation like alpha > beta > main, the changelog in the main branch reflects all versions and if you make a lot of changes in alpha before release to main it will be very large and not very understandable.
Maybe add a feature to be able to choose the branches on which the changelog is generated?

Another possibility is to create a system to choose a file name according to the branch, for example to have CHANGELOG-beta.md if we are in the beta branch.

Do you have a workaround for now?

Thanks

@casparbauer
Copy link

We are in need of configuring when the changelog is generated too. For us, a regex based approach works best, though a skipOnPrerelease would have worked for us as well. In any case, our pipeline setup requires this to be available in the NPM registry. We therefore now published a separate package which preforms an augmentation: https://www.npmjs.com/package/@flexperto/semantic-release-changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants